package business;

import java.util.List;

import vo.Opinion;
import vo.Paper;
import vo.Sentence;

public interface OpinionService {

	void insertOpinion(Opinion op);

	List<Opinion> getAll();

	// 分页
	List<Opinion> getAll(int start, int pageSize);

	long getTotalCount();

	// 按照分页
	List<Opinion> getByPaperId(int start, int pageSize, long paperId);

	long getTotalCountByPaperId(long paperId);

	// 按照类型分页
	List<Opinion> getByType(int start, int pageSize, long type);

	long getTotalCountByType(long type);

	// 按照keyword分页
	List<Opinion> getByKeyword(int start, int pageSize,String keyword);

	long getTotalCountByKeyword(String keyword);
	// 按照type,keyword分页
	List<Opinion> getByTypeKeyword(int start, int pageSize,long type,String keyword);

	long getTotalCountByTypeKeyword(long type,String keyword);

}
